package com.bookmanager.www.mapper;

import com.bookmanager.www.entity.FlPermissions;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.Set;

/**
 * <p>
 * 用户权限表管理用户权限 Mapper 接口
 * </p>
 *
 * @author 风离
 * @since 2021-09-17
 */
public interface FlPermissionsMapper extends BaseMapper<FlPermissions> {

    /**
     * 根据用户id查询权限
     * @param roleId
     * @return
     */
    Set<String> selectPermissionsByRoleId(@Param("roleId") int roleId);
}
